package mysql

const (
	UNKOWNSTATUS = iota
	SERVERHELLO
	CLIENTHEELO
	SERVERSWITCHREQUEST
	CLIENTSWITCHRESPONSE
	STATUSOK
)

const (
	OK_HEADER          byte = 0x00
	ERR_HEADER         byte = 0xff
	EOF_HEADER         byte = 0xfe
	LocalInFile_HEADER byte = 0xfb
)

const (
	CLIENT_CONNECT_WITH_DB                = 1 << 3
	CLIENT_SECURE_CONNECTION              = 1 << 15
	CLIENT_PLUGIN_AUTH_LENENC_CLIENT_DATA = 1 << 21
)

const (
	COM_SLEEP byte = iota
	COM_QUIT
	COM_INIT_DB
	COM_QUERY
	COM_FIELD_LIST
	COM_CREATE_DB
	COM_DROP_DB
	COM_REFRESH
	COM_SHUTDOWN
	COM_STATISTICS
	COM_PROCESS_INFO
	COM_CONNECT
	COM_PROCESS_KILL
	COM_DEBUG
	COM_PING
	COM_TIME
	COM_DELAYED_INSERT
	COM_CHANGE_USER
	COM_BINLOG_DUMP
	COM_TABLE_DUMP
	COM_CONNECT_OUT
	COM_REGISTER_SLAVE
	COM_STMT_PREPARE
	COM_STMT_EXECUTE
	COM_STMT_SEND_LONG_DATA
	COM_STMT_CLOSE
	COM_STMT_RESET
	COM_SET_OPTION
	COM_STMT_FETCH
	COM_DAEMON
	COM_BINLOG_DUMP_GTID
	COM_RESET_CONNECTION
)
const (
	TYPE_NO = iota
	TYPE_ALLOWED
	TYPE_DENIED
	TYPE_UNKNOWN
)

const (
	_ = iota
	OP_UNKNOWN
	OP_UNION
	OP_SELECT
	OP_STREAM
	OP_VSTREAM
	OP_INSERT
	OP_UPDATE
	OP_DELETE
	OP_SET
	OP_SET_TRANSACTION
	OP_DROP_DATABASE
	OP_FLUSH
	OP_SHOW
	OP_USE
	OP_BEGIN
	OP_COMMIT
	OP_ROLLBACK
	OP_SROLLBACK
	OP_SAVEPOINT
	OP_RELEASE
	OP_OTHER_READ
	OP_OTHER_ADMIN = 22

	OP_LOAD
	OP_CREATE_DATABASE
	OP_ALTER_DATABASE
	OP_CREATE_TABLE
	OP_CREATE_VIEW
	OP_ALTER_VIEW
	OP_LOCK_TABLES
	OP_UNLOCK_TABLES
	OP_ALTER_TABLE
	OP_ALTER_VSCHEMA
	OP_ALTER_MIGRATION
	OP_REVERT_MIGRATION
	OP_SHOW_MIGRATIONLOGS
	OP_DROP_TABLE
	OP_DROP_VIEW
	OP_TRUNCATE_TABLE
	OP_RENAME_TABLE
	OP_CALLPROC
	OP_ANALYZE = 41

	OP_EXPLAIN
	OP_OTHER

	OP_DO

	OP_LOCK
	OP_UNLOCK
	OP_CALL
	OP_REVERT
)

const (
	PARSE_UNKNOWN = iota
	PARSE_OK
	PARSE_ERROR
)

const (
	MATCH_UNKNOWN = iota
	MATCH_STRING
	MATCH_REGEXP
)
